vcVector
A 4x1 column vector which is generally used to define joint lengths in robots, offsets and directions, and angles of rotation.
See in: Overview
Module: vcCore
Parent: -
Children -
Referenced by: vcBoundingBox.Center, vcBoundingBox.HalfDiagonal, vcBufferProductsStatement.PatternStep, vcCamera.CenterOfInterest, ... (see more)
vcBoundingBox.Center
vcBoundingBox.HalfDiagonal
vcBufferProductsStatement.PatternStep
vcCamera.CenterOfInterest
vcCamera.Eye
vcCollisionRecord.PointA
vcCollisionRecord.PointB
vcDirectionalLight.Direction
vcFrameKinematicData.AngularVelocity
vcFrameKinematicData.LinearVelocity
vcLineSet.Lines
vcLineSet.getLine()
vcMatrix.A
vcMatrix.AxisAngle
vcMatrix.Euler
vcMatrix.N
vcMatrix.O
vcMatrix.P
vcMatrix.Quaternion
vcMatrix.WPR
vcNode.localToWorld()
vcNode.worldToLocal()
vcPointLight.Position
vcPointSet.getPointPosition()
vcProductTypeAssemblyPatternItem.DefaultBoundsDimensions
vcSnapService.TargetNormal
vcSnapService.TargetPosition
vcSpotLight.Direction
vcSpotLight.Position
vcText2DSet.Position
vcToolFrame.Inertia
vcTopology.getPoint()
vcTopologyPickService.TargetNormal
vcTopologyPickService.TargetPosition
vcTransportPatternInStatement.PatternCount
vcTransportPatternInStatement.PatternStep
vcTriangleSet.Points
vcTriangleSet.getPoint()
vcTriangleSet.getPointNormals()
vcTriangleSet.getPointPositions()
vcTriangleSet.getTriangleNormal()
vcVectorExpressionProperty.CalculatedValue
vcVectorListProperty.Value
vcVectorProperty.Value
vcVectorStepProperty.AllowedValues
vcVectorStepProperty.DefaultValue
vcVectorStepProperty.Value
vcVolumeDetector.Corner1
vcVolumeDetector.Corner2
Properties
Learn how to use properties here. The properties are also inherited from the parent class.
| Name | Type | Access | Description |
| Values | list[Real] | R | Gets vector values as a list of 4 reals. |
| W | Real | RW | Gets or sets the w-component (fourth element) of vector. |
| X | Real | RW | Gets or sets the x-component (first element) of vector. |
| Y | Real | RW | Gets or sets the y-component (second element) of vector. |
| Z | Real | RW | Gets or sets the z-component (third element) of vector. |
Methods
Learn how to use methods here. The methods are also inherited from the parent class.
| Name | Return Type | Parameters | Description |
| angle | Real | vcVector vector | Returns the angle between vector and a given vector, in radians.See moreParameters: vector (vcVector): a vector to calculate the angle to Returns: Real: angle between the vectors |
| angleDeg | Real | vcVector vector | Returns the angle between vector and a given vector, in degrees.See moreParameters: vector (vcVector): a vector to calculate the angle to Returns: Real: angle between the vectors |
| cross | vcVector | vcVector vector | Returns the cross product of this vector with another vector.See moreParameters: vector (vcVector): The other vector. Returns: vcVector: Cross product of vectors. |
| dot | Real | vcVector vector | Returns the dot product of this vector with another vector.See moreParameters: vector (vcVector): The other vector. Returns: Real: Dot product of vectors. |
| getQuaternionAngle | vcVector | vcVector vector | Returns the angle between vector and a given vector, as a quaternion.See moreParameters: vector (vcVector): a vector to calculate the angle to Returns: vcVector: a quaternion representing the angle between vectors |
| length | Real | None | Returns the magnitude (length) of vector. Returns: Real: magnitude (length) of vector. |
| new | vcVector | None | Creates a new vector with values initialized to (0, 0, 0, 1). Returns: vcVector: Created vector. |
| new | vcVector | Real x, Real y, Real z | Creates a new vector with given values, initializing W-component to 1.See moreParameters: x (Real): X-component of the vector. y (Real): Y-component of the vector. z (Real): Z-component of the vector. Returns: vcVector: Created vector. |
| new | vcVector | Real x, Real y, Real z, Real w | Creates a new vector with given values.See moreParameters: x (Real): X-component of the vector. y (Real): Y-component of the vector. z (Real): Z-component of the vector. w (Real): W-component of the vector. Returns: vcVector: Created vector. |
| new | vcVector | vcVector vec | Creates a copy of the given vector.See moreParameters: copy (vcVector): The vector to create copy from. Returns: vcVector: Created vector. |
| normalize | None | None | Normalizes vector. |
| square | Real | None | Returns the square of vector. Returns: Real: square of vector. |
| toString | String | Optional Keyword[includeW = Boolean], Optional Keyword[precision = Integer], Optional Keyword[includeZeros = Boolean] | Returns string representation of matrix.See moreParameters: format (vcMatrixFormat): The representation format. precision (Integer): Precision of real values. includeZeros (Boolean): Include zeros up to the defined precision limit. (P=45.000000 vs P=45). |